package com.hj.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author HuangJin
 * @version 1.0
 * describe:
 * @date 2023/4/16 21:59
 */
@Service
public class UserService {
    @Autowired
    private UserDao userDao;

    /**
     * 插入用户数据
     * @param user 用户数据
     * @return 是否插入成功
     */
    public boolean insertUser(User user) {
        int result = userDao.insertUser(user);
        return result > 0;
    }

}
